{{?widget.menu}} <!-- определялка пустоты виджета -->

{{!connect "theme/widget/common.css"}}
{{!connect "theme/widget/selector.css"}}
{{!connect "widget/feed/doctypes_menu.js"}}

<div class="widget wg-selector wg-doctypes-menu"><div class="bg1-"><div class="bg2-">
	<h3 class="title-">{{widget.title}}</h3>
	<form action="{{widget.action_filter | safe}}">
		{{!for widget.menu do=@:menu_item}}
		{{:menu_item}}
			{{?*is_total}}
				<fieldset class="fieldbox- first-">
					<input type="checkbox" class="checkbox-" name="{{widget.rq_tdi}}[]" value="{{*section}}" {{?*checked}}checked{{/?}} id="directory{{@:id}}" />
					<label id="l_directory{{@:id}}" for="directory{{@:id}}">Все</label> {{*count}}
				</fieldset>
			{{?:For.last}}
				<fieldset class="fieldbox- last-">
					<input type="checkbox" class="checkbox-" name="{{widget.rq_tdi}}[]" value="{{*section}}" {{?*checked}}checked{{/?}} id="directory{{@:id}}" />
					<label id="l_directory{{@:id}}" for="directory{{@:id}}">{{*tdi.title}}</label> {{*count}}
				</fieldset>
			{{?:}}
				<fieldset class="fieldbox-">
					<input type="checkbox" class="checkbox-" name="{{widget.rq_tdi}}[]" value="{{*section}}" {{?*checked}}checked{{/?}} id="directory{{@:id}}" />
					<label id="l_directory{{@:id}}" for="directory{{@:id}}">{{*tdi.title}}</label> {{*count}}
				</fieldset>
			{{/?}}
		{{/:menu_item}}
		<input type="submit" value="Показать" class="more-" />
	</form>
</div></div></div>

{{/?}} <!-- конец определялки пустоты виджета -->

{{:id}}{{*section | sprintf '%02d'}}{{/:id}}
